

package com.hazelcast.internal.nio;

import com.hazelcast.internal.serialization.Data;

import java.io.DataOutput;
import java.io.IOException;

/**
 * Extends {@link DataOutput} with the ability to write {@link Data} to the output stream.
 */
public interface DataWriter extends DataOutput {
    /**
     * @param data data to be written
     * @throws IOException
     */
    void writeData(Data data) throws IOException;
}
